﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Data.Linq;
using System.Text;

namespace Storage.EntityModels
{
    using Exceptions;

    #region DriverFeedback
    
    /// <summary>
    /// This class represent the DriverFeedbacks table into entities model.
    /// </summary>
    public partial class DriverFeedback
    {
        #region Partial methods: OnValidate

#if DEBUG
        partial void OnValidate(ChangeAction action)
        {
            if (Sender == null)
                throw new FeedbackValidationException();
        }
#endif

        #endregion
    } 

    #endregion

    #region PassengerFeedback

    /// <summary>
    /// This class represent the PassengerFeedbacks table into entities model.
    /// </summary>
    public partial class PassengerFeedback
    {
        #region Partial methods: OnValidate

#if DEBUG
        partial void OnValidate(ChangeAction action)
        {

            if (Sender == null)
                throw new FeedbackValidationException();
        }
#endif

        #endregion
    } 

    #endregion
}
